home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1359 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.6 KB

  1. Path: ccshst01.cs.uoguelph.ca!ttsuchid
  2. From: ttsuchid@uoguelph.ca (Toby Tsuchida)
  3. Newsgroups: comp.lang.c
  4. Subject: c help request
  5. Date: 13 Jan 1996 02:59:01 GMT
  6. Organization: University of Guelph
  7. Message-ID: <4d775l$h93@ccshst05.cs.uoguelph.ca>
  8. NNTP-Posting-Host: ccshst01.cs.uoguelph.ca
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11.  
  12. I need some debugging help.
  13.  
  14. I'm using the c compiler that comes with HP-UX 9.x (9.1 I think)
  15.  
  16. (in chkmail.c, mm_list and mm_lsub are dummy prototype declarations.)
  17.  
  18. I get the below errors when I compile.
  19. -------------------------------
  20. ~/CCS/toys/chkmail > make
  21. cc -Aa -I../imap-4/c-client `cat ../imap-4/c-client/CFLAGS` -c chkmail.c
  22. cc: "chkmail.c", line 132: error 1711: Inconsistent parameter list 
  23. declaration for "mm_list".
  24. cc: "chkmail.c", line 144: error 1711: Inconsistent parameter list 
  25. declaration for "mm_lsub".
  26. *** Error code 1
  27.  
  28. Stop
  29. --------------------------------
  30.  
  31. Here all the mm_list references to see if you can detect a pattern:
  32. --------------------------------
  33. ~/CCS/toys/imap-4/c-client > grep -n mm_list *.h
  34. mail.h:81:/* Bits for mm_list() and mm_lsub() */
  35. mail.h:791:void mm_list ();        <-------------- this looks suspect but
  36.                                               I haven't take a close look 
  37. yet.
  38. ~/CCS/toys/imap-4/c-client > grep -n mm_list *.c
  39. dummy.c:256: *      contents to search before calling mm_list()
  40. dummy.c:291:  mm_list (stream,delimiter,name,attributes);
  41. imap4.c:2059:      else mm_list (stream,delimiter,t,i);
  42. imap4.c:2065:      mm_list (stream,NIL,t,NIL);
  43. mh.c:233:      mm_list (stream,NIL,"#MHINBOX",LATT_NOINFERIORS);
  44. mh.c:291:         if (pmatch_full (name,pat,'/')) mm_list
  45. (stream,'/',name,NIL);
  46. mtest.c:535:void mm_list (stream,delimiter,mailbox,attributes)
  47. news.c:188:       mm_list (stream,'.',name,LATT_NOSELECT);
  48. news.c:190:     else mm_list (stream,'.',name,NIL);
  49. nntp.c:185:      if (pmatch_full (name,pattern,'.')) mm_list
  50. (stream,'.',name,NIL
  51. );
  52. nntp.c:189:       mm_list (stream,'.',name,LATT_NOSELECT);
  53. pop3.c:174:      mm_list (stream,NIL,tmp,LATT_NOINFERIORS);
  54. pop3.c:179:    mm_list (stream,NIL,tmp,LATT_NOINFERIORS);
  55.  
  56. ---------------------------------------
  57.  
  58. ~/CCS/toys/chkmail > grep mm_list chkmail.c      (Shows the following:)
  59.  
  60. void mm_list (MAILSTREAM *stream,char delimiter,char *name,long attributes)
  61.  
  62. (I don't know what is inconsistent.)
  63. (The above line actually looks like this in chkmail.c:)
  64.  
  65. void mm_list (MAILSTREAM *stream,char delimiter,char *name,long attributes)
  66. {
  67.         /* This is a dummy routine */
  68. }
  69.  
  70. ---------------------
  71.  
  72. Can anyone detect an inconsistency that the linker is complaining about?
  73.  
  74. --
  75. .. Toby
  76.